package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author Gareth Cao
 * @date 2022/6/17 14:24
 */
public interface WmMaterialService extends IService<WmMaterial> {
    ResponseResult uploadPicture(MultipartFile file);

    ResponseResult findList(WmMaterialDto dto);

    void collect(Integer materialId);

    void deleteWithId(Integer materialId);

    void collectNor(Integer materialId);
}
